package com.lianjinsu.shop.service.impl;

import com.lianjinsu.shop.entity.Rank;
import com.lianjinsu.shop.repository.dao.RankDao;
import com.lianjinsu.shop.service.RankService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class RankServiceImpl implements RankService {

    private final RankDao rankDao;

    @Override
    public List<Rank> rankList(int limit) {
        return rankDao.selectSortDesc(limit);
    }
}
